package com.jiang.demo.user.controller;

import com.jiang.demo.user.service.UserServiceLogon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 注册接口
 */

@RestController
@Controller
public class LogonController {
    @Autowired UserServiceLogon userServiceLogon;
    @PostMapping("/user/account/logon/")
    public Map<String,String> logon(@RequestParam Map<String,String>data){
        System.out.println(1);
        return userServiceLogon.logon(data);
    }
}
